﻿@using Telerik.Web.Mvc.UI
@using WebSite.Views
@using WebSite.ViewModels

@model WebSite.ViewModels.DetailsViewModels.DetailsViewModel

<h2>Excluir @Model.Title</h2>

<h3>Você confirma a exclusão?</h3>

@Model.GetTabsViewModel(Html)

<br />

@using (Html.BeginForm("Delete", Model.ControllerName, FormMethod.Post, new { id = "deleteForm", name = "deleteForm" }))
{
    ButtonsViewModel buttonsViewModel = Html.Buttons();
    if (Model.Message == null)
    {
        buttonsViewModel.Add(ButtonType.Insert, "#", "Confirmar Exclusão", "javascript:deleteForm.submit()");
    }
    else
    {
        <div style="color:Red">@Model.Message</div><br />
    }
    @buttonsViewModel.Add(Model.Model, Model.ControllerName, ButtonType.Cancel)
}


